FROM php:7.2-fpm
RUN apt-get update && apt-get install -y \
        vim \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libpng-dev \
        libmemcached-dev \
        zlib1g-dev \
        libwebp-dev \
        libzip-dev \
        libcurl4-openssl-dev \
        libxml2-dev \
        --no-install-recommends \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN docker-php-ext-install gd bcmath exif gettext intl pcntl shmop soap sockets sysvmsg sysvsem sysvshm zip iconv pdo_mysql mysqli